package com.zrrd._0727;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class TestBuffer {

   public static void main(String[] args) throws IOException {
      while (true) {
         BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
         String str = bufferedReader.readLine();//读取一行数据
         if (str == null) break;
         if (str.equals("exit")) {
            System.exit(0);
         }
         System.out.println("输入的内容为:" + str);
      }
   }
}
